package org.example.domain.item.entity;

import com.alibaba.cola.domain.Entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.common.base.BaseEntity;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
public class ItemEntity extends BaseEntity<Long> {

    /**
     * 主键
     */
    private Long id;

    /**
     * 商品名称
     */
    private String itemName;

    /**
     * 介绍
     */
    private String introduction;

    /**
     * 成本价(单位：分)
     */
    private Long costPrice;

    /**
     * 售价(单位：分)
     */
    private Long salePrice;

    @Override
    public Long getPrimaryId() {
        return id;
    }

    @Override
    public void setPrimaryId(Long id) {
        this.id = id;
    }
}
